package com.cloud.userservice;

import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class UserService {
    public void create(User user) {
        System.out.println("调用了UserService->create方法.........user信息:" + user.toString() + "  " + new Date());
    }

    public User getUser(Long id) {
        System.out.println("调用了UserService->getUser.........id:" + id + "  " + new Date());
        User user = new User();
        user.setId(id);
        user.setName("getUser查询出来的user");
        return user;
    }
}
